package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.Role;

import java.util.List;

public interface RoleService {
    PageResult findPage(QueryPageBean pageBean);

    void add(Role role, Integer[] permissionIds, Integer[] menuIds);

    void delById(Integer id);

    Role findById(Integer id);

    List<Integer> findpermissionIdsByroleId(Integer roleId);

    void edit(Role role, Integer[] permissionIds, Integer[] menuIds);

    List<Integer> findmenuIdsByroleId(Integer roleId);
}
